-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thermostat fix #1867
Thermostat fix #1867
Conversation
96f49f3
to
aaba9be
Compare
@@ -73,11 +74,13 @@ export class HuiThermostatCard extends hassLocalizeLitMixin(LitElement) | |||
[stateObj.attributes.operation_mode]: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will fail if operation mode contains a space.
})}"> | ||
<div id="root"> | ||
<div id="thermostat"></div> | ||
<div id="tooltip"> | ||
<div class="title">Upstairs</div> | ||
<div class="title">${this.config.title}</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we use config.title and not the entity name ?
@@ -30,6 +31,7 @@ const modeIcons = { | |||
|
|||
interface Config extends LovelaceConfig { | |||
entity: string; | |||
title: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to remove this again?
* Thermostat fix * Fix for unknown operation mode * No title for you * I suck at removing unnecessary things * Fixing pointless Ternary operator
* Thermostat fix * Fix for unknown operation mode * No title for you * I suck at removing unnecessary things * Fixing pointless Ternary operator
* Thermostat fix (#1867) * Thermostat fix * Fix for unknown operation mode * No title for you * I suck at removing unnecessary things * Fixing pointless Ternary operator * Add version bump script * Fix hass setting on stack (#1868) * Fix hass setting on stack * Don't set hass on pic elements if undefined * Don't set hass on entity rows if undefined * prefix config prop * Pic elements set hass yoooo * Remove interface * Make stack config private * Fix import * Lint * Bumped version to 20181026.1 * 🔨 move not text to header and name to secondary text * 🔨 reduce some other margins
Failing at developing and Fixing my noob mistakes